
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.polimi.se2.meteocal.xml;

/**
 *
 * @author Ugo
 */
import it.polimi.se2.meteocal.entity.Participation;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
 
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "participations")
public class Participations {
 
    @XmlElement(name = "participation", type = Participation.class)
    private List<Participation> participations = new ArrayList<Participation>();
     
    public Participations() {}
 
    public Participations(List<Participation> participations) {
        this.participations = participations;
    }
 
    public List<Participation> getParticipations() {
        return participations;
    }
 
    public void setParticipations(List<Participation> participations) {
        this.participations = participations;
    }  
}

